package com.hxjc.bankagent.old.bank.controller;

import com.hxjc.bankagent.old.bank.entity.BankRequest;
import com.hxjc.bankagent.old.bank.entity.BankResponse;
import com.hxjc.bankagent.old.bank.service.outbound.BankOutboundService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * BankOutBoundController
 *
 * @author yinz
 * @date 2018/5/8
 */
@Controller
public class BankOutBoundController {

    private static Logger logger = LoggerFactory.getLogger(BankOutBoundController.class);

    @RequestMapping("/BankOutbound")
    public BankResponse execute(BankRequest outboundRequest) {
        BankOutboundService service = new BankOutboundService();
        return service.execute(outboundRequest);
    }
}
